package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.BookingsDatetimeAddDTO;
import org.jsola.hr.dto.BookingsDatetimeUpdateDTO;
import org.jsola.hr.query.BookingsDatetimeQuery;
import org.jsola.hr.vo.BookingsDatetimeListVO;
import org.jsola.hr.vo.BookingsDatetimeVO;

import java.util.List;

/**
 * 预约业务时段表
 *
 * @author zhr
 */
@Api(tags = "hr-预约业务时段表")
public interface IBookingsDatetimeControllerAPI {

    /**
     * 新增预约业务时段表
     * @param bookingsDatetimeAddDTO 预约业务时段表新增实体
     * @return 预约业务时段表展示对象
     */
    @ApiOperation(value = "新增预约业务时段表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bookingsDatetimeAddDTO", dataType = "BookingsDatetimeAddDTO", value = "新增预约业务时段表", paramType = "body")
    })
    Result<BookingsDatetimeVO> save(BookingsDatetimeAddDTO bookingsDatetimeAddDTO);


    /**
     * 修改预约业务时段表
     * @param bookingsDatetimeUpdateDTO 预约业务时段表
     * @return 更新数量
     */
    @ApiOperation(value = "修改预约业务时段表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bookingsDatetimeUpdateDTO", dataType = "BookingsDatetimeUpdateDTO", value = "修改预约业务时段表", paramType = "body")
    })
    Result<Integer> update(BookingsDatetimeUpdateDTO bookingsDatetimeUpdateDTO);




    /**
     * 删除单个预约业务时段表，彻底删除
     * @param bookingsDatetimeId 预约业务时段表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个预约业务时段表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bookingsDatetimeId", dataType = "Long", value = "预约业务时段表id", paramType = "path")
    })
    Result<Integer> delete(Long bookingsDatetimeId);


    /**
     * 批量删除预约业务时段表，彻底删除
     * @param bookingsDatetimeIds 预约业务时段表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除预约业务时段表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bookingsDatetimeIds", dataType = "Long[]", value = "预约业务时段表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(Long[] bookingsDatetimeIds);


    /**
     * 根据预约业务时段表id查询预约业务时段表详情
     * @param bookingsDatetimeId 预约业务时段表id
     * @return 预约业务时段表详情
     */
    @ApiOperation(value="根据预约业务时段表id查询预约业务时段表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bookingsDatetimeId", dataType = "Long", value = "预约业务时段表id", paramType = "path")
    })
    Result<BookingsDatetimeVO> findById(Long bookingsDatetimeId);


    /**
     * 查询预约业务时段表
     * @param bookingsDatetimeQuery 预约业务时段表查询参数
     * @return page
     */
    @ApiOperation(value="查询预约业务时段表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bookingsDatetimeQuery", dataType = "BookingsDatetimeQuery", value = "预约业务时段表查询参数", paramType = "query")
    })
    Result<List<BookingsDatetimeListVO>> listAll(BookingsDatetimeQuery bookingsDatetimeQuery);


     /**
     * 分页查询预约业务时段表
     * @param bookingsDatetimeQuery 预约业务时段表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询预约业务时段表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bookingsDatetimeQuery", dataType = "BookingsDatetimeQuery", value = "预约业务时段表查询参数", paramType = "query")
    })
    Result<Page<BookingsDatetimeListVO>> page(BookingsDatetimeQuery bookingsDatetimeQuery);


}

